import observer.Zh0202Buyer01;
import observer.Zh0202Buyer02;
import observer.Zh0202Buyer03;
import observer.Zh0202Observer;
import subject.Zh0202HuaWeiStore;
import subject.Zh0202MySubject;

/**
 * @author: zh
 * @date: 2021/11/18 11:30
 * @version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        Zh0202Observer buyer01,buyer02,buyer03;
        buyer01 = new Zh0202Buyer01();
        buyer02 = new Zh0202Buyer02();
        buyer03 = new Zh0202Buyer03();
        Zh0202MySubject store = new Zh0202HuaWeiStore();
        store.addObserver(buyer01);
        store.addObserver(buyer02);
        store.addObserver(buyer03);
        store.sendMsg();
    }
}
